package com.example.chain.auth;

public class MemberService {

    public void login(String loginName,String password){
        ValidateHandler validate = new ValidateHandler();
        LoginHandler login = new LoginHandler();
        AuthHandler auth = new AuthHandler();

        Handler.Builder builder = new Handler.Builder();
        Handler handler = builder.add(validate).add(login).add(auth).build();
        handler.doHandler(new Member(loginName, password));
    }

}
